<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/vue.min.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<mycom3></mycom3>
		</div>
		
		<template id="tmpl">
			<div>
				<h1>外部定义的组件结构</h1>
				<h4>ojbk</h4>
			</div>
		</template>
		
		<script type="text/javascript">
			Vue.component('mycom3',{
				template:'#tmpl'
			})
			
			new Vue({
				el:"#app"
			});
		</script>
	</body>
</html>
